package org.josircd.config.service;

import org.josircd.config.ConfigService;
import org.josircd.config.bean.IrcdConfiguration;
import org.josircd.config.manager.ConfigManager;

/**
 * Internal implementation of our example OSGi service
 */
public final class ConfigServiceImpl implements ConfigService {

    private ConfigManager configManager;

    public IrcdConfiguration getIrcdConfiguration() {
        return configManager.getConfig();
    }

    public void refresh() {
        configManager.refresh();
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public void setConfigManager(ConfigManager configManager) {
        this.configManager = configManager;
    }
}

